package anonymouschat.messages.clientrequests;

/**
 * This request goes to publication server and asks for a target user's public
 * key.
 * 
 * @author bh349
 * 
 */
public class KeyRequest extends ClientRequest {

	// the user who's public keys you want
	private String targetUserName;

	/**
	 * Asking for another client's public key
	 * 
	 * @param srcUserName
	 *            String specify the source userID
	 * @param userName
	 *            String specify the target userID
	 * 
	 */
	public KeyRequest(String srcUserName, String userName) {
		super(srcUserName);
		targetUserName = userName;
	}

	/**
	 * 
	 * @return &lt String &gt the user ID you are requesting the keys of
	 */
	public String getTargetUserName() {
		return targetUserName;
	}

	private static final long serialVersionUID = 5810767283361800423L;

}
